<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/2/1 0001
 * Time: 0:17
 */require_once 'conn.php';

if(!empty($_GET['id'])) {//id不为空 empty 为空值false 执行
    $id=intval($_GET['id']);
   $a= mysql_query("select * from mm where id =$id");
    $b= (mysql_fetch_assoc($a));
    print_r($b);

}else{
    die("id no");
}
?>
<form action="edituser_server.php" method="get">
    <div>用户id
        <input type="text" name="id" value="<?php echo $b['id']; ?>">
    </div>
    <div>用户名字
        <input type="text" name="name" value="<?php echo $b['user']; ?>">
    </div>
    <div>用户密码
        <input type="text" name="pass" value="<?php echo $b['pass']; ?>">
    </div>
    <input type="submit" value="提交">
</form>

</body>
</html>
